package com.it.emall.service;

import com.it.emall.domain.Ingredients;

import java.util.List;

/**
 * 食品分类Service
 */
public interface IngredientsService {


    List<Ingredients> selectIngredients(String name);

    /**
     * 分类列表
     * @return
     */
    List<Ingredients> selectIngredientsList();


    /**
     * 查询子分类
     * @param pid
     * @return
     */
    List<Ingredients> selectChildrenIngreByPid(Integer pid);
    /**
     * 添加分类
     */
    int insertIngredients(Ingredients ingredients);

    /**
     * 修改分类
     *
     */
    int updateIngredients(Ingredients ingredients);

    /**
     * 删除分类
     */
    int deleteIngredients(Integer id);


    /**
     * 通过id查询分类
     */

    Ingredients selectIngredientsById(Integer id);
}
